/**********************************************************************************************************************
 *  FILE DESCRIPTION
 *  -----------------------------------------------------------------------------------------------------------------*/
/** \file
 *  \brief        Wrapper for FEE access
 *  -------------------------------------------------------------------------------------------------------------------
 *  COPYRIGHT
 *  -------------------------------------------------------------------------------------------------------------------
 *  \par Copyright
 *  \verbatim
 *  Copyright (c) 2014 by Vector Informatik GmbH.                                                  All rights reserved.
 *
 *                This software is copyright protected and proprietary to Vector Informatik GmbH.
 *                Vector Informatik GmbH grants to you only those rights as set out in the license conditions.
 *                All other rights remain with Vector Informatik GmbH.
 *  \endverbatim
 */
/*********************************************************************************************************************/

/**********************************************************************************************************************
 *  AUTHOR IDENTITY
 *  -------------------------------------------------------------------------------------------------------------------
 *  Name                          Initials      Company
 *  -------------------------------------------------------------------------------------------------------------------
 *  Andreas Wenckebach            AWh           Vector Informatik GmbH
 *  -------------------------------------------------------------------------------------------------------------------
 *  REVISION HISTORY
 *  -------------------------------------------------------------------------------------------------------------------
 *  Version   Date        Author  Change Id          Description
 *  -------------------------------------------------------------------------------------------------------------------
 *  01.00.00  2015-05-22  AWh     -                  Initial version
 *********************************************************************************************************************/

#ifndef FBL_APNV_FEE_H_
#define FBL_APNV_FEE_H_

/**********************************************************************************************************************
 *  INCLUDES
 *********************************************************************************************************************/

#include "v_cfg.h"
#include "v_def.h"
#include "fbl_def.h"

/**********************************************************************************************************************
 *  DEFINES
 *********************************************************************************************************************/

#define FBL_NV_APPNBID_FEE_LENGTH                          2u
#define FBL_NV_KEYNBID_FEE_LENGTH                          2u
#define FBL_NV_SBAT_FEE_LENGTH                             822u

/**********************************************************************************************************************
 *  GLOBAL FUNCTION PROTOTYPES
 *********************************************************************************************************************/

tFblResult ApplFblNvInit( void );

/* Common FEE read / write function wrappers */
tFblResult ApplFblNvRead( vuint16 blockNumber,
                          vuint16 blockOffset,
                          V_MEMRAM1 vuint8 V_MEMRAM2 V_MEMRAM3 * pBuffer,
                          vuint16 length );
tFblResult ApplFblNvWrite( vuint16 blockNumber,
                           V_MEMRAM1 vuint8 V_MEMRAM2 V_MEMRAM3 * pBuffer );

#endif /* FBL_APNV_FEE_H_ */

/***********************************************************************************************************************
 *  END OF FILE: FBL_APNV_FEE.H
 **********************************************************************************************************************/
